package net.lizhongxian.interview.hunktimes.entity;

import java.math.BigDecimal;

/**
 * 商品抽象类
 */
public abstract class Goods {

	/**
	 * 商品名称
	 */
	protected String name;

	/**
	 * 商品单价
	 */
	protected BigDecimal price;

	/**
	 * 折扣
	 */
	protected BigDecimal discount;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getDiscount() {
		return discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	@Override
	public String toString() {
		return "Goods{" +
				"name='" + name + '\'' +
				", price=" + price +
				", discount=" + discount +
				'}';
	}
}
